--------------------------------------------------------
--  DDL for Trigger SQL_LOG_PK_TRG
--------------------------------------------------------

  CREATE OR REPLACE TRIGGER "SQL_LOG_PK_TRG" 
  BEFORE INSERT ON "SQL_LOG"
  REFERENCING FOR EACH ROW
  begin  
   if inserting then 
      if :NEW."SLID" is null then 
         select LOG_SEQ.nextval into :NEW."SLID" from dual; 
      end if; 
   end if; 
end;
ALTER TRIGGER "SQL_LOG_PK_TRG" ENABLE
